package com.xcz.demo03;

public class Client {
    public static void main(String[] args) {
        //真实角色
        Host host = new Host();
        //代理角色
        ProxyInvocationHandle proxyInvocationHandle = new ProxyInvocationHandle();
        proxyInvocationHandle.setRent(host);

        Rent proxy = (Rent) proxyInvocationHandle.getProxy();

        proxy.rent();

    }

}
